Release 10.1A: OpenEdge Development:
Progress 4GL Reference
ADD-NEW-FIELD( ) method
Adds a field with the specified properties to the temp-table. Additional properties can be manipulated by creating a buffer-field object for this field.
This method cannot be called after TEMP-TABLE-PREPARE( ) has been called unless CLEAR( ) is called first.
Return type: LOGICAL Applies to: Temp-table object handle
field-name-expA character expression that evaluates to the name of the field to be created in the temp-table.
datatype-expA character expression that evaluates to the data type of the specified field.
extent-expAn integer expression specifying the extent of an array. If
extent-expis 0, 1 or the Unknown value (?), it is ignored.format-expA character expression that evaluates to the data format for the defined data type. If
format-expis "" or the Unknown value (?), it is ignored and the default format of the specified data type is used.initial-expAn expression that evaluates to the initial value of the defined field.
initial-expcan be any compatible data type, but is usually character. Ifinitial-expis not entered, the default for the data type is used.label-expAn optional character expression that evaluates to the label of the defined field. If you do not specify a value, or you pass the Unknown value (
?),label-expdefaults to the value of thefield-name-expparameter.column-label-expAn optional character expression that evaluates to the label of the column associated with the defined field. If you do not specify a value, or you pass the Unknown value (
?),column-label-expdefaults to the value of thelabel-expparameter (or thefield-name-expparameter, if thelabel-expparameter is not specified).The following example fragment adds a new character field called “abfield” which is initialized to “abc” to a temp-table:
Note: There is a limit to the number of fields that can be accommodated in a temp-table object. The limit depends on how large the field information (initial value, validate information, help messages, etc.) is, but you should plan on a limit of 500 fields.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |